﻿using System.Diagnostics;
using System.Windows;
using Ags.MonsterTools.Common;
using System.Windows.Controls;

namespace Ags.MonsterTools.PingTool
{
    /// <summary>
    /// Interaction logic for PingView.xaml
    /// </summary>
    public partial class PingView : UserControl, IView
    {
        public PingView(PingViewModel vm)
        {
            this.DataContext = vm;
            InitializeComponent();
        }

        public string HeaderContent
        {
            get { return "Ping"; }
        }

        public void Dispose()
        {
            var viewModel = this.DataContext as PingViewModel;
            if (viewModel != null) viewModel.Dispose();
        }
    }
}
